Get Status of Dual Button Module
Function:
magicbox.get_button_status(port)Description: set the status of dual button module
Required parameter:
- port: controller port. data type: int, range: 1~6
- Return:
- red: status of red button. 0: down; 1: up
- blue: status of blue button. 0: down; 1: up
Example
red,blue = magicbox.get_button_status(port=1)Get the status of dual button module connected to Port1 of controller.